﻿using System.Web;
using System.Text;
using System.IO;
using System.Net;
using System;
using System.Collections.Generic;
using System.Configuration;


namespace Com.CMB
{
    /// <summary>
    /// 类名：Config
    /// 功能：基础配置类
    /// 详细：设置帐户有关信息及返回路径
    /// 版本：3.4
    /// 修改日期：2016-03-17
    /// 说明：
    /// </summary>
    public  class Config
    {
        /// <summary>
        /// 支付结果通知命令
        /// </summary>
        public static string CMB_PayCallBackUrl = ConfigurationManager.AppSettings.Get("CMB_PayCallBackUrl");

        /// <summary>
        /// 支付成功返回页面
        /// </summary>
        public static string CMB_PayOrderResultUrl = ConfigurationManager.AppSettings.Get("CMB_PayOrderResultUrl");
        /// <summary>
        /// 绑卡回调页面
        /// </summary>
        public static string CMB_BindCardUrl = ConfigurationManager.AppSettings.Get("CMB_BindCardUrl");
        /// <summary>
        /// 支付请求提交地址
        /// </summary>
        public static string CMB_PostUrl = ConfigurationManager.AppSettings.Get("CMB_PostUrl");

        /// <summary>
        /// 字符编码格式 目前支持 gbk 或 utf-8
        /// </summary>
        public static string input_charset = "utf-8";
        // 调试用，创建TXT日志文件夹路径，见AlipayCore.cs类中的LogResult(string sWord)打印方法。
        public static string log_path = HttpRuntime.AppDomainAppPath.ToString() + "log\\";

    }
}
